package com.javaPro.myProject.modules.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("/web")
public class WebController {
    @GetMapping("/index")
    public String index(){//主页
        return "index";
    }
    @GetMapping("welcome")
    public String welcome(){
        return "welcome";
    }
    @GetMapping("forum")
    public String forum(){
        return "forum/forum";
    }
    @GetMapping("forumDetail")
    public String forumDetail(){
        return "forum/forumDetail";
    }
    @GetMapping("personal")
    public String personal(){

        return "personal";
    }
    @GetMapping("register")
    public String register(){

        return "register";
    }

    @GetMapping("addArticle")
    public String addArticle(){

        return "pages/addArticle";
    }
    @GetMapping("login")
    public String login(){

        return "login";
    }
    @GetMapping("type")
    public String type(){

        return "type/type";
    }

    @GetMapping({"/user"})
    public String user() {
        return "user/user";
    }

    @GetMapping({"/courseInfo"})
    public String courseInfo() {
        return "courseInfo/courseInfo";
    }

  @GetMapping({"/caseInfo"})
    public String caseInfo() {
        return "caseInfo/caseInfo";
    }
  @GetMapping({"/teacher"})
    public String teacher() {
        return "teacher/teacher";
    }
    @GetMapping({"/teacherDetail"})
    public String teacherDetail() {
        return "teacher/teacherDetail";
    }
  @GetMapping({"/message"})
    public String message() {
        return "message/message";
    }
    @GetMapping("files")
    public String files(){
        return "files/files";
    }
    @GetMapping("order")
    public String order(){
        return "order/order";
    }

//----------------------用户
@GetMapping({"/pagesIndex"})
public String pagesIndex() {
    return "pages/index";
}

//景点/特色
@GetMapping({"/courses"})
public String courses() {
    return "pages/courses";
}
//景点/特色
@GetMapping({"/contact"})
public String contact() {
    return "pages/contact";
}
//景点/特色
@GetMapping({"/myCourse"})
public String myCourse() {
    return "pages/myCourse";
}
//景点/特色详情
@GetMapping({"/courseDetail"})
public String courseDetail() {
    return "courseInfo/courseDetail";
}
    //景点/特色详情
    @GetMapping({"/homework"})
    public String homework() {
        return "homework/homework";
    }
    //景点/特色详情
    @GetMapping({"/notice"})
    public String notice() {
        return "notice/notice";
    }
    //mingrenzihua
    @GetMapping({"mingrenzihua"})
    public String mingrenzihua() {
        return "mingrenzihua/mingrenzihua";
    }
    //lishiyuanyuan
    @GetMapping({"lishiyuanyuan"})
    public String lishiyuanyuan() {
        return "lishiyuanyuan/lishiyuanyuan";
    }
}
